import 'package:flutter/material.dart';

class AppRouterPage extends Page {
  final RouteFactory routeFactory;
  final LocalKey key;
  final String name;
  final Object arguments;
  AppRouterPage({
    @required this.key,
    @required this.arguments,
    @required this.routeFactory,
    @required this.name,
  }) : super(
          key: key,
          name: name,
          arguments: arguments,
        );

  @override
  Route createRoute(BuildContext context) {
    return routeFactory(this);
  }
}

// class AnimationRouterPage extends MaterialPage {
//   @override
//   Widget build(BuildContext context) {

//   }
// }
